requirejs.config({
    //Cargar cualquier modulo desde layoutBaseURL/js donde layoutBaseURL es una variable js global
	//en el layout
    baseUrl: layoutBaseURL+'/js',
    //except, if the module ID starts with "app",
    //load it from the js/app directory. paths
    //config is relative to the baseUrl, and
    //never includes a ".js" extension since
    //the paths config could be for a directory.
    paths: {
        jquery:'lib/jquery-1.8.0.min',
        bootstrap:'lib/bootstrap.min',
        underscore:'lib/backbone/underscore-min',
        backbone:'lib/backbone/backbone-min',
        jqueryui:'lib/jquery-ui-1.8.22.custom.min',
        jqgrid:'lib/jquery.jqGrid-4.4.0/jquery.jqGrid.min',
        jqgridlocale:'lib/jquery.jqGrid-4.4.0/i18n/grid.locale-es',
        datatables:'lib/DataTables-1.9.3/jquery.dataTables.min',
        dataTablesFnReloadAjax:'lib/DataTables-1.9.3/dataTables.fnReloadAjax',
        handlebars:'lib/handlebars-1.0.0.beta.6',
        text:'lib/text',
        templates:'../templates',
        utils:'lib/utils',
        jqueryform:'lib/jquery.form',
        jqueryvalidation:'lib/jquery-validation-1.9.0/jquery.validate.min',
        jqueryvalidation_es:'lib/jquery-validation-1.9.0/localization/messages_es',
        jquerynoty:'lib/noty/jquery.noty',
        jquerynoty_default_theme:'lib/noty/themes/default',
        jquerynoty_top_layout:'lib/noty/layouts/top',
        jquerynoty_inline_layout:'lib/noty/layouts/inline',
        jquerynoty_center_layout:'lib/noty/layouts/center',
        jeditable:'lib/jquery.jeditable.mini',
        jquerymaskedinput:'lib/jquery.maskedinput-1.3.min',
       
       
      },
    shim:{
    	'backbone':{
    		deps:['jquery','underscore'],
    		exports:'Backbone'
    	},
    	'bootstrap':['jquery'],
    	'jqueryui':['jquery'],
    	'datatables':['jquery'],
    	'jqgrid':['jquery','jqueryui','jqgridlocale'],
    	'jqueryform':['jquery'],
         'jqueryvalidation':['jquery'],
    	'jqueryvalidation_es':['jqueryvalidation'],
    	'jquerynoty':['jquery'],
    	'jquerynoty_default_theme':['jquerynoty'],
    	'jquerynoty_top_layout':['jquerynoty'],
    	'jquerynoty_inline_layout':['jquerynoty'],
    	'jquerynoty_center_layout':['jquerynoty'],
    	'dataTablesFnReloadAjax':['datatables'],
    	'jeditable':['jquery'],
    	'jquerymaskedinput':['jquery'],
    	
    }
});
//Esta es una variable de namespace para diferentes usos
Dtt={};
if(typeof layoutBaseURL!='undefined'){
	Dtt.baseUrl=layoutBaseURL;
}
if(typeof layoutModuleUrl!='undefined'){
	Dtt.moduleUrl=layoutModuleUrl;
}


// Start the main app logic.
require(['jquery',
         'bootstrap','utils/focus-inputs',
         'utils/global-ajax-request',
         'backbone-config',
         'noty-config'],
function   ($) {  
	$(function(){
		
	});
	
});

